package com.bmps.springcloud.insuredmicroservice.service.underwrite.strategy.minordeath.riskstrategy;

import com.bmps.springcloud.insuredmicroservice.model.accept.LcPolModel;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;

/**
 * description:
 * LBP025
 *
 * @author jackdaw
 * @date 2020-01-08 11:54
 */
@Component
public class Lbp025RiskStrategy implements RiskStrategy {
    @Override
    public BigDecimal getAmount(LcPolModel lcPolModel, List<LcPolModel> lcPolModels, boolean current) {

        return lcPolModel.getPrem().multiply(BigDecimal.valueOf(0.2));
    }
}
